#!/bin/bash

# 检查kamailio进程是否存在
if pgrep kamailio > /dev/null; then
    echo "Kamailio process found. Killing the process..."
    # 如果存在，则杀死进程
    pkill -9 kamailio

    # 等待进程终止
    sleep 5
    echo "Kamailio process killed."
fi


